import { BasicColumn } from '/@/components/Table'

export const Columns: BasicColumn[] = [
    {
        title: 'ID',
        dataIndex: '_id',
    },
    {
        title: '反馈人',
        dataIndex: 'uid',
        slots: { customRender: 'uid' },
    },
    {
        title: '反馈内容',
        dataIndex: 'content',
        slots: { customRender: 'content' },
    },
    {
        title: '反馈人手机号',
        dataIndex: 'phone',
        slots: { customRender: 'phone' },
    },
    {
        title: '媒体类型',
        dataIndex: 'type',
        slots: { customRender: 'type' },
    },
    {
        title: '反馈对象',
        dataIndex: 'object',
        slots: { customRender: 'object' },
    },
    {
        title: '反馈类型',
        dataIndex: 'faultType',
        slots: { customRender: 'faultType' },
    },
    {
        title: '反馈时间',
        dataIndex: 'createdAt',
        slots: { customRender: 'createdAt' },
    },
    {
        title: '状态',
        dataIndex: 'status',
        slots: { customRender: 'status' },
    },
]

export const FormConfig = {
    labelWidth: 100,
    schemas: [
        {
            field: '_id',
            label: '反馈编号:',
            component: 'Input',
            componentProps: {
                placeholder: '请输入反馈编号',
            },
            colProps: {
                xl: 8,
                xxl: 6,
            },
        },
        {
            field: 'faultType',
            label: '反馈类型:',
            component: 'Select',
            componentProps: {
                options: [
                    {
                        label: '违法违规',
                        value: '1',
                    },
                    {
                        label: '低俗色情',
                        value: '2',
                    },
                    {
                        label: '广告诈骗',
                        value: '3',
                    },
                    {
                        label: '未成年不良信息',
                        value: '4',
                    },
                    {
                        label: '内容质量差',
                        value: '5',
                    },
                    {
                        label: '侵权投诉',
                        value: '6',
                    },
                ],
            },
            colProps: {
                xl: 8,
                xxl: 6,
            },
        },
    ],
}
